package com.heyun.service.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.heyun.bean.HeyunCustomer;
import com.heyun.bean.HeyunEmp;
import com.heyun.dao.HeyunCustomerDao;
import com.heyun.dao.HeyunEmpDao;
@Service
public class HeyunCustomerImpl {
	@Autowired
	private HeyunCustomerDao heyunCustomerDao;
	public List<HeyunCustomer> listHeyunCustomer(){
/*			SqlSession session=sqlSessionFactory.openSession();
			HeyunCustomerDao heyunCustomerDao=session.getMapper(HeyunCustomerDao.class);*/
			List<HeyunCustomer> heyunCustomerList=heyunCustomerDao.listHeyunCustomer();
			return heyunCustomerList;
	}
}
